find the endpoint when given midpoint and other endpoint ex 1